package com.nes.rabbitmq.springboot.topic;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by wdq on 17-3-13.
 */
@Component
@RabbitListener(queues = "topic.messages")
public class ReceiverTopic1 {

    @RabbitHandler
    public void message(String message){
        System.out.println("收到2："+message);
    }
}
